package com.youwu.weather.service;

import com.youwu.weather.vo.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

// 服务地址（即项目名）
@FeignClient("weather-city-eureka")
public interface CityClient {

    // 对应服务api接口
    @GetMapping("/citys")
    List<City> listCity();
}
